package com.abai.doubi.server.config;

import com.abai.doubi.utils.AliTokenUtil;
import com.alibaba.nls.client.protocol.NlsClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliConfig {
    @Bean
    public NlsClient nlsClient(){
        return new NlsClient("wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1", AliTokenUtil.getToken());
    }
}
